package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class Books implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1332771050389048916L;

	private String resId;

	private String author;

	private String translator;

	private String publisher;

	private String isbn;

	private String frontCover;

	private String editor;

	private String drawer;

	private String price;

	private Integer remarkLevel;

	private String dynasty;

	private String aNationality;

	private String eNationality;

	private String tNationality;

	private String dNationality;

	private String category;

	private String alias;

	private String sereis;

	private Boolean isInput;

	private Boolean isOriginal;

	private Boolean isPhonetic;

	private Boolean isPhoneticBook;

	private Integer minAge;

	private Integer maxAge;

	private String description;

	private String edition;

	private String bindingStyle;

	private String language;

	private String pageCount;

	private String readingObject;

	private String age;
	
	private String sourcePath;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId == null ? null : resId.trim();
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author == null ? null : author.trim();
	}

	public String getTranslator() {
		return translator;
	}

	public void setTranslator(String translator) {
		this.translator = translator == null ? null : translator.trim();
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher == null ? null : publisher.trim();
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn == null ? null : isbn.trim();
	}

	public String getFrontCover() {
		return frontCover;
	}

	public void setFrontCover(String frontCover) {
		this.frontCover = frontCover == null ? null : frontCover.trim();
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor == null ? null : editor.trim();
	}

	public String getDrawer() {
		return drawer;
	}

	public void setDrawer(String drawer) {
		this.drawer = drawer == null ? null : drawer.trim();
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price == null ? null : price.trim();
	}

	public Integer getRemarkLevel() {
		return remarkLevel;
	}

	public void setRemarkLevel(Integer remarkLevel) {
		this.remarkLevel = remarkLevel;
	}

	public String getDynasty() {
		return dynasty;
	}

	public void setDynasty(String dynasty) {
		this.dynasty = dynasty == null ? null : dynasty.trim();
	}

	public String getaNationality() {
		return aNationality;
	}

	public void setaNationality(String aNationality) {
		this.aNationality = aNationality == null ? null : aNationality.trim();
	}

	public String geteNationality() {
		return eNationality;
	}

	public void seteNationality(String eNationality) {
		this.eNationality = eNationality == null ? null : eNationality.trim();
	}

	public String gettNationality() {
		return tNationality;
	}

	public void settNationality(String tNationality) {
		this.tNationality = tNationality == null ? null : tNationality.trim();
	}

	public String getdNationality() {
		return dNationality;
	}

	public void setdNationality(String dNationality) {
		this.dNationality = dNationality == null ? null : dNationality.trim();
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category == null ? null : category.trim();
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias == null ? null : alias.trim();
	}

	public String getSereis() {
		return sereis;
	}

	public void setSereis(String sereis) {
		this.sereis = sereis == null ? null : sereis.trim();
	}

	public Boolean getIsInput() {
		return isInput;
	}

	public void setIsInput(Boolean isInput) {
		this.isInput = isInput;
	}

	public Boolean getIsOriginal() {
		return isOriginal;
	}

	public void setIsOriginal(Boolean isOriginal) {
		this.isOriginal = isOriginal;
	}

	public Boolean getIsPhonetic() {
		return isPhonetic;
	}

	public void setIsPhonetic(Boolean isPhonetic) {
		this.isPhonetic = isPhonetic;
	}

	public Boolean getIsPhoneticBook() {
		return isPhoneticBook;
	}

	public void setIsPhoneticBook(Boolean isPhoneticBook) {
		this.isPhoneticBook = isPhoneticBook;
	}

	public Integer getMinAge() {
		return minAge;
	}

	public void setMinAge(Integer minAge) {
		this.minAge = minAge;
	}

	public Integer getMaxAge() {
		return maxAge;
	}

	public void setMaxAge(Integer maxAge) {
		this.maxAge = maxAge;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public String getEdition() {
		return edition;
	}

	public void setEdition(String edition) {
		this.edition = edition == null ? null : edition.trim();
	}

	public String getBindingStyle() {
		return bindingStyle;
	}

	public void setBindingStyle(String bindingStyle) {
		this.bindingStyle = bindingStyle == null ? null : bindingStyle.trim();
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language == null ? null : language.trim();
	}

	public String getPageCount() {
		return pageCount;
	}

	public void setPageCount(String pageCount) {
		this.pageCount = pageCount == null ? null : pageCount.trim();
	}

	public String getReadingObject() {
		return readingObject;
	}

	public void setReadingObject(String readingObject) {
		this.readingObject = readingObject == null ? null : readingObject.trim();
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age == null ? null : age.trim();
	}

	public String getSourcePath() {
		return sourcePath;
	}

	public void setSourcePath(String sourcePath) {
		this.sourcePath = sourcePath;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((aNationality == null) ? 0 : aNationality.hashCode());
		result = prime * result + ((age == null) ? 0 : age.hashCode());
		result = prime * result + ((alias == null) ? 0 : alias.hashCode());
		result = prime * result + ((author == null) ? 0 : author.hashCode());
		result = prime * result + ((bindingStyle == null) ? 0 : bindingStyle.hashCode());
		result = prime * result + ((category == null) ? 0 : category.hashCode());
		result = prime * result + ((dNationality == null) ? 0 : dNationality.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((drawer == null) ? 0 : drawer.hashCode());
		result = prime * result + ((dynasty == null) ? 0 : dynasty.hashCode());
		result = prime * result + ((eNationality == null) ? 0 : eNationality.hashCode());
		result = prime * result + ((edition == null) ? 0 : edition.hashCode());
		result = prime * result + ((editor == null) ? 0 : editor.hashCode());
		result = prime * result + ((frontCover == null) ? 0 : frontCover.hashCode());
		result = prime * result + ((isInput == null) ? 0 : isInput.hashCode());
		result = prime * result + ((isOriginal == null) ? 0 : isOriginal.hashCode());
		result = prime * result + ((isPhonetic == null) ? 0 : isPhonetic.hashCode());
		result = prime * result + ((isPhoneticBook == null) ? 0 : isPhoneticBook.hashCode());
		result = prime * result + ((isbn == null) ? 0 : isbn.hashCode());
		result = prime * result + ((language == null) ? 0 : language.hashCode());
		result = prime * result + ((maxAge == null) ? 0 : maxAge.hashCode());
		result = prime * result + ((minAge == null) ? 0 : minAge.hashCode());
		result = prime * result + ((pageCount == null) ? 0 : pageCount.hashCode());
		result = prime * result + ((price == null) ? 0 : price.hashCode());
		result = prime * result + ((publisher == null) ? 0 : publisher.hashCode());
		result = prime * result + ((readingObject == null) ? 0 : readingObject.hashCode());
		result = prime * result + ((remarkLevel == null) ? 0 : remarkLevel.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((sereis == null) ? 0 : sereis.hashCode());
		result = prime * result + ((sourcePath == null) ? 0 : sourcePath.hashCode());
		result = prime * result + ((tNationality == null) ? 0 : tNationality.hashCode());
		result = prime * result + ((translator == null) ? 0 : translator.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Books other = (Books) obj;
		if (aNationality == null) {
			if (other.aNationality != null)
				return false;
		} else if (!aNationality.equals(other.aNationality))
			return false;
		if (age == null) {
			if (other.age != null)
				return false;
		} else if (!age.equals(other.age))
			return false;
		if (alias == null) {
			if (other.alias != null)
				return false;
		} else if (!alias.equals(other.alias))
			return false;
		if (author == null) {
			if (other.author != null)
				return false;
		} else if (!author.equals(other.author))
			return false;
		if (bindingStyle == null) {
			if (other.bindingStyle != null)
				return false;
		} else if (!bindingStyle.equals(other.bindingStyle))
			return false;
		if (category == null) {
			if (other.category != null)
				return false;
		} else if (!category.equals(other.category))
			return false;
		if (dNationality == null) {
			if (other.dNationality != null)
				return false;
		} else if (!dNationality.equals(other.dNationality))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (drawer == null) {
			if (other.drawer != null)
				return false;
		} else if (!drawer.equals(other.drawer))
			return false;
		if (dynasty == null) {
			if (other.dynasty != null)
				return false;
		} else if (!dynasty.equals(other.dynasty))
			return false;
		if (eNationality == null) {
			if (other.eNationality != null)
				return false;
		} else if (!eNationality.equals(other.eNationality))
			return false;
		if (edition == null) {
			if (other.edition != null)
				return false;
		} else if (!edition.equals(other.edition))
			return false;
		if (editor == null) {
			if (other.editor != null)
				return false;
		} else if (!editor.equals(other.editor))
			return false;
		if (frontCover == null) {
			if (other.frontCover != null)
				return false;
		} else if (!frontCover.equals(other.frontCover))
			return false;
		if (isInput == null) {
			if (other.isInput != null)
				return false;
		} else if (!isInput.equals(other.isInput))
			return false;
		if (isOriginal == null) {
			if (other.isOriginal != null)
				return false;
		} else if (!isOriginal.equals(other.isOriginal))
			return false;
		if (isPhonetic == null) {
			if (other.isPhonetic != null)
				return false;
		} else if (!isPhonetic.equals(other.isPhonetic))
			return false;
		if (isPhoneticBook == null) {
			if (other.isPhoneticBook != null)
				return false;
		} else if (!isPhoneticBook.equals(other.isPhoneticBook))
			return false;
		if (isbn == null) {
			if (other.isbn != null)
				return false;
		} else if (!isbn.equals(other.isbn))
			return false;
		if (language == null) {
			if (other.language != null)
				return false;
		} else if (!language.equals(other.language))
			return false;
		if (maxAge == null) {
			if (other.maxAge != null)
				return false;
		} else if (!maxAge.equals(other.maxAge))
			return false;
		if (minAge == null) {
			if (other.minAge != null)
				return false;
		} else if (!minAge.equals(other.minAge))
			return false;
		if (pageCount == null) {
			if (other.pageCount != null)
				return false;
		} else if (!pageCount.equals(other.pageCount))
			return false;
		if (price == null) {
			if (other.price != null)
				return false;
		} else if (!price.equals(other.price))
			return false;
		if (publisher == null) {
			if (other.publisher != null)
				return false;
		} else if (!publisher.equals(other.publisher))
			return false;
		if (readingObject == null) {
			if (other.readingObject != null)
				return false;
		} else if (!readingObject.equals(other.readingObject))
			return false;
		if (remarkLevel == null) {
			if (other.remarkLevel != null)
				return false;
		} else if (!remarkLevel.equals(other.remarkLevel))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (sereis == null) {
			if (other.sereis != null)
				return false;
		} else if (!sereis.equals(other.sereis))
			return false;
		if (sourcePath == null) {
			if (other.sourcePath != null)
				return false;
		} else if (!sourcePath.equals(other.sourcePath))
			return false;
		if (tNationality == null) {
			if (other.tNationality != null)
				return false;
		} else if (!tNationality.equals(other.tNationality))
			return false;
		if (translator == null) {
			if (other.translator != null)
				return false;
		} else if (!translator.equals(other.translator))
			return false;
		return true;
	}

	public Books() {
		super();
	}

	public Books(String resId, String author, String translator, String publisher, String isbn, String frontCover,
			String editor, String drawer, String price, Integer remarkLevel, String dynasty, String aNationality,
			String eNationality, String tNationality, String dNationality, String category, String alias, String sereis,
			Boolean isInput, Boolean isOriginal, Boolean isPhonetic, Boolean isPhoneticBook, Integer minAge,
			Integer maxAge, String description, String edition, String bindingStyle, String language, String pageCount,
			String readingObject, String age, String sourcePath) {
		super();
		this.resId = resId;
		this.author = author;
		this.translator = translator;
		this.publisher = publisher;
		this.isbn = isbn;
		this.frontCover = frontCover;
		this.editor = editor;
		this.drawer = drawer;
		this.price = price;
		this.remarkLevel = remarkLevel;
		this.dynasty = dynasty;
		this.aNationality = aNationality;
		this.eNationality = eNationality;
		this.tNationality = tNationality;
		this.dNationality = dNationality;
		this.category = category;
		this.alias = alias;
		this.sereis = sereis;
		this.isInput = isInput;
		this.isOriginal = isOriginal;
		this.isPhonetic = isPhonetic;
		this.isPhoneticBook = isPhoneticBook;
		this.minAge = minAge;
		this.maxAge = maxAge;
		this.description = description;
		this.edition = edition;
		this.bindingStyle = bindingStyle;
		this.language = language;
		this.pageCount = pageCount;
		this.readingObject = readingObject;
		this.age = age;
		this.sourcePath = sourcePath;
	}

	@Override
	public String toString() {
		return "Books [resId=" + resId + ", author=" + author + ", translator=" + translator + ", publisher="
				+ publisher + ", isbn=" + isbn + ", frontCover=" + frontCover + ", editor=" + editor + ", drawer="
				+ drawer + ", price=" + price + ", remarkLevel=" + remarkLevel + ", dynasty=" + dynasty
				+ ", aNationality=" + aNationality + ", eNationality=" + eNationality + ", tNationality=" + tNationality
				+ ", dNationality=" + dNationality + ", category=" + category + ", alias=" + alias + ", sereis="
				+ sereis + ", isInput=" + isInput + ", isOriginal=" + isOriginal + ", isPhonetic=" + isPhonetic
				+ ", isPhoneticBook=" + isPhoneticBook + ", minAge=" + minAge + ", maxAge=" + maxAge + ", description="
				+ description + ", edition=" + edition + ", bindingStyle=" + bindingStyle + ", language=" + language
				+ ", pageCount=" + pageCount + ", readingObject=" + readingObject + ", age=" + age + ", sourcePath="
				+ sourcePath + "]";
	}

	
}